export function checkLogin(val,id) {
	if (!val.vuex_srls_token) {
		uni.navigateTo({
			url: "/pages/sys/login/index"
		})
		return false
	} else {
		console.log(3344)
		
		
		// uni.navigateTo({
		// 	url: "/pages/sys/user/join"
		// })
	}
}

export function checkIsVip() {
	console.log(33333)
}

export function checkLoginAndIsVip(val) {
	if (!val.vuex_srls_token) {
		uni.navigateTo({
			url: "/pages/sys/login/index"
		})
		return false
	} else {
		if (val.vuex_srls_isvip!=1) {
			
			
			
			// uni.navigateTo({
			// 	url: "/pages/sys/user/join"
			// })
			return false
		} else {
			return true
		}
	}
}